<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>创客后台</title>
	<link rel="shortcut icon" href="/static/images/favicon.ico" />
	<link rel="stylesheet" href="/static/style/css/admin_main.css">
	<link rel="stylesheet" href="/static/style/css/pop-dialog.css">

	#include('../cdn/cdn.html')
	<script type="text/javascript" src="/static/style/js/pop-dialog.js"></script>

	<script>
		function logout() {
			$.post('/admin/logout', function (data) {
				if (data.success) {
				  location.href = '/admin/login';
				}
      });
    }
	</script>
</head>
<body style="margin: 70px 0 0 230px;">
<div style="position: relative;">
	<header class="admin-header">
		<div class="header-left">
			创客 Lab
		</div>
		<div class="header-right">
			<a href="javascript:">
				<span class="glyphicon glyphicon-tasks"></span>
			</a>
			<div class="dropdown pull-right">
				<a href="javascript:" class="dropdown-toggle" type="button" data-toggle="dropdown">
					<img src="/static/images/admin/more1.png" height="30">
				</a>
				<ul class="dropdown-menu">
				    <li><a href="/" target="_blank"><span class="glyphicon glyphicon-eye-open"></span> 查看网站</a></li>
				    <li><a onclick="logout();" href="javascript:"><span class="glyphicon glyphicon-log-out"></span> 注销</a></li>
				</ul>
			</div>
		</div>
	</header>
	
	<div class="admin-side">
		<ul>
			<li class="active"><a href="/admin"><span class="glyphicon glyphicon-asterisk"></span> 仪表盘</a></li>
			<li><a href="/admin/publish"><span class="glyphicon glyphicon-pencil"></span> 发布文章</a></li>
			<li><a href="/admin/articles"><span class="glyphicon glyphicon-list-alt"></span> 文章管理</a></li>
			<li><a href="/admin/member"><span class="glyphicon glyphicon-picture"></span> 成员管理</a></li>
			<li><a href="/admin/email"><span class="glyphicon glyphicon-envelope"></span> 邮箱管理</a></li>
			<li><a href="/admin/setting"><span class="glyphicon glyphicon-cog"></span> 系统设置</a></li>
		</ul>
	</div>
	
	<script type="text/javascript" src="/static/style/js/admin.js"></script>
	<script type="text/javascript">
		Auto(); // 自动改变侧边栏宽度
	</script>